package com.chunfeng.service.ex;

/**
 * 业务层异常超类
 */
public class ServiceException extends RuntimeException {

    /**
     * 异常枚举类
     */
    private ServiceExceptionEnum serviceExceptionEnum;

    /**
     * 传入枚举类
     *
     * @param serviceExceptionEnum 业务层枚举
     */
    public ServiceException(ServiceExceptionEnum serviceExceptionEnum) {
        this.serviceExceptionEnum = serviceExceptionEnum;
    }

    public ServiceExceptionEnum getServiceExceptionEnum() {
        return serviceExceptionEnum;
    }

    public void setServiceExceptionEnum(ServiceExceptionEnum serviceExceptionEnum) {
        this.serviceExceptionEnum = serviceExceptionEnum;
    }
}
